import 'package:star_author/views/login/login_page.dart';
import 'package:star_author/views/products/bidder_goods_detail_page/bidder_goods_detaill_page.dart';
import 'package:star_author/views/splash_page/splash_page.dart';
import 'package:get/get.dart';

import '../views/login/phone_login.dart';

class GetXRouter {
  static List<GetPage> getPages = [
    GetPage(
      name: SplashPage.routeName,
      page: () => SplashPage(),
    ),
    GetPage(
      name: LoginPage.routeName,
      page: () => LoginPage(),
    ),
    GetPage(
      name: PhoneLoginPage.routeName,
      page: () => PhoneLoginPage(),
    ),
    GetPage(
      name: BidderGoodsDetailPage.routeName,
      page: () =>
          BidderGoodsDetailPage(id: int.parse(Get.parameters["id"] ?? "0")),
    ),
  ];
}
